]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell: Use proper path to include girepository headers
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 12 Aug 2025 01:59:14 +0000 (03:59 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 12 Aug 2025 06:43:34 +0000 (06:43 +0000)
girepository-2.0 headers are inside ${PREFIX}/include/glib-2.0/girepository
and the pkg-config file provides the glib-2.0 subpath as include
directory, so we are required to use the full header path, or we may not
be able to find them.

This is triggered a build failure in debian (with clean setup where no
libgirepository-1.0 was installed):

  ../src/shell-global.c:19:10: fatal error: girepository.h: No such file or
  directory
     19 | #include <girepository.h>

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3837>

src/shell-global.c
src/shell-tray-manager.c

index c941701b618e48ad0f87a65d7dd48fa1d4af07a6..9a6de28e98f99d60c043eacd79631e7e2d4f2b42 100644 (file)
@@ -16,7 +16,7 @@
 #include <locale.h>
 
 #include <gio/gio.h>
-#include <girepository.h>
+#include <girepository/girepository.h>
 #include <meta/meta-backend.h>
 #include <meta/meta-context.h>
 #include <meta/display.h>
index ddbd17608a65f606879c3be770c0a82837f7ad42..5455211f287c830f77f6c5a078620fe4c2507199 100644 (file)
@@ -3,7 +3,7 @@
 #include "config.h"
 
 #include <clutter/clutter.h>
-#include <girepository.h>
+#include <girepository/girepository.h>
 #include <meta/display.h>
 
 #include "shell-tray-manager.h"